package com.xhs.aop;

/**
 * 数据源连接池
 * @author wudawei 356110537@qq.com
 * @date 2016-12-28
 *
 */
public class HandleDataSource {

	// 数据源名称线程池
	private static final ThreadLocal<String> holder = new ThreadLocal<String>();

	public static void putDataSource(String datasource) {
		holder.set(datasource);
	}

	public static String getDataSource() {
		return holder.get();
	}

	public static void clear() {
		holder.remove();
	}
}
